const { env } = require('./env')
const UPLOAD_PATH = env === 'dev' ? '/opt/homebrew/Cellar/nginx/1.19.10/html/admin-upload-ebook' : '/root/nginx/upload/admin-upload-ebook';

const UPLOAD_URL = env === 'dev' ?
    'http://localhost:8080/admin-upload-ebook' :
    'https://www.dhszzp.top/admin-upload-ebook'

const OLD_UPLOAD_URL = env === 'dev' ?
    'localhost:8090/book/img' :
    'https://www.resume1234.top:18082/book/img'
module.exports = {
  CODE_ERROR: -1,
  CODE_SUCCESS: 0,
  CODE_TOKEN_EXPIRED: -2,
  debug: true,
  PWD_SALT: 'admin_imooc_node',
  PRIVATE_KEY: 'admin_imooc_node_test_youbaobao_xyz',
  JWT_EXPIRED: 60 * 60,
  UPLOAD_PATH,
  OLD_UPLOAD_URL,
  UPLOAD_URL,
  MIME_TYPE_EPUB: 'application/epub+zip',
  MIME_TYPE_RESUME:'image/jpg'
}
